<template>
     <div class="app">
     <div class="contain">
       <CarNo v-if='ifcar===0'></CarNo>
       <CarHave v-else></CarHave>
     </div>
  
    </div>
</template>

<script setup>
import CarNo from './components/car-none.vue'
import CarHave from './components/car-have.vue'
import { useStore } from 'vuex'
 const store = useStore()
 const ifcar = store.getters['cart/validTotal']
</script>

<style lang="less" scoped>
.app{
    width: 100%;
    height: 100%;
    background-color: #F5F5F5;
}
.contain{
margin-top: 20px;
}
</style>